package com.zfzs.post.modules.transaction.service.mapper.mybatis;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfzs.post.modules.transaction.domain.TransactionInfo;
import com.zfzs.post.modules.transaction.service.dto.SumTranByLevelDTO;
import com.zfzs.post.modules.transaction.service.dto.SumTranByTypeDTO;
import com.zfzs.post.modules.transaction.service.dto.TerAvgTransactionDTO;
import com.zfzs.post.modules.transaction.service.dto.TerSumTransactionDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author wq
 * @date 2019/10/29 13:46
 * @description
 */
@Mapper
public interface TransactionMapper extends BaseMapper<TransactionInfo> {

    List<TerAvgTransactionDTO> findTerAvgTransaction4Team(Map<String,Object> params);


    List<TerSumTransactionDTO> findTerSumTransaction(Map<String, Object> params);

    List<SumTranByLevelDTO> findSumTranGroupByLevel(Map<String,Object> params);

    List<SumTranByTypeDTO> findSumTranGroupByType(Map<String, Object> params);
}
